package com.cloudwise.pollux.service.gateway.controller;

import com.google.common.collect.Maps;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * @author sky
 * @date 2021/2/1 11:38 下午
 */
@RestController
public class FallbackController {
    @GetMapping("fallback-tooMany-connections")
    public Map<String, Object> serviceBusy(){
        Map<String, Object> resultMap = Maps.newHashMap();
        resultMap.put("code","100");
        resultMap.put("message","服务暂时不可用");
        return resultMap;
    }
}
